package com.mightybird.designpattern.behavioral.chainofresponsibility;

public abstract class Handler {
    protected Handler successor;
    protected String name;

    public Handler(String name) {
        this.name = name;
    }

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void handleRequest(int leave);
}
